home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Interfaces & Libraries / interfaces / storage library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-29  |  1.2 KB  |  34 lines  |  [TEXT/MPS ]

  1. /* graphics libraries:  
  2.     primitive flattening library routine interfaces
  3.     by Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink, Chris Yerga
  4.     Copyright 1987 - 1991 Apple Computer, Inc.  All rights reserved.    */
  5.  
  6. #ifndef storageLibraryIncludes
  7.     #ifndef __TYPES__
  8.         #include <Types.h>
  9.     #endif
  10.  
  11.     #ifndef graphicsStreamTypesIncludes
  12.         #include "graphics stream types.h"
  13.     #endif
  14.         
  15.     typedef struct {
  16.         gxSpoolBlock      spool;
  17.         long            reference;
  18.         long            position;
  19.         long            size;
  20.         void            *data;
  21.         void            *userField;
  22.     } userSpool;
  23.  
  24.     long HandleSpoolProc(gxSpoolCommand, userSpool *);
  25.     long FileSpoolProc(gxSpoolCommand, userSpool *);
  26.     
  27.     Handle ShapeToHandle(gxShape);
  28.     gxShape HandleToShape(Handle, long count, const gxViewPort portList[]);
  29.     void ShapeToFile(gxShape, Str255 fileName, short vRefNum, OSType creator, OSType fileType);
  30.     gxShape FileToShape(Str255 fileName, short vRefNum, long count, const gxViewPort portList[]);
  31.     Handle FontToHandle(gxFont fontID, long glyphBits[]);
  32.     gxFont HandleToFont(Handle source);
  33. #endif
  34.